all: main
CC=g++ -O3 -Wno-deprecated
#CC=condor_compile g++ -O3 -Wno-deprecated
OBJECTS=svm.o pn.o classifier.o svm_kernel_classifier.o sent.o util.o structure.o
INCLUDE=svm.h pn.h classifier.h svm_kernel_classifier.h sent.h util.h structure.h
main: $(INCLUDE) $(OBJECTS) main.cpp
	rm -f main
	$(CC) $(OBJECTS) main.cpp -o main
parser.o: classifier.o parser.h parser.cpp
	$(CC) -c parser.cpp
util.o: util.h util.cpp
	$(CC) -c util.cpp
dtree.o: dtree.h dtree.cpp
	$(CC) -c dtree.cpp  
dep.o: dep.h dep.cpp dtree.o
	$(CC) -c dep.cpp  	
syn.o: syn.h syn.cpp
	$(CC) -c syn.cpp        	
sent.o: util.o structure.o sent.h sent.cpp
	$(CC) -c sent.cpp
pn.o: util.o pn.h pn.cpp
	$(CC) -c pn.cpp
svm.o: svm.h svm.cpp
	$(CC) -c svm.cpp  
structure.o: structure.h structure.cpp
	$(CC) -c structure.cpp  
svm_kernel_classifier.o: svm_kernel_classifier.h svm_kernel_classifier.cpp svm.o pn.o
	$(CC) -c svm_kernel_classifier.cpp  	
classifier.o: classifier.h classifier.cpp
	$(CC) -c classifier.cpp
clean:
	rm -f $(OBJECTS) main

